function handleHeight(el, binding) {
  debugger
  let clientHeight = document.querySelectorAll('.main-container')[0].clientHeight;
  let searchFormHeight = 0;
  let searchForm = document.querySelectorAll('.search-form-inline');
  if(searchForm.length > 0){
    searchFormHeight = document.querySelectorAll('.search-form-inline')[0].clientHeight
  }
  let h = clientHeight - searchFormHeight - 200;
  if(h<200){
    h = 200;
  }
  el.style.maxHeight = h + 'px';
  el.style.height = h + 'px';
  el.style.overflowY = 'visible'; 
}

export default {
  inserted(el, binding) {
    handleHeight(el, binding)
  }
}